package crossbreed.views;

import javax.swing.JFrame;
import javax.swing.JSplitPane;
import crossbreed.presenters.ComparisonPresenter;

public class ComparisonView implements IComparisonView
{
	private JFrame frame;
	private JSplitPane splitPane;
	
	public ComparisonView(JFrame frame, JSplitPane splitPane, ComparisonPresenter presenter)
	{
		this.frame = frame;
		this.frame.addWindowListener(presenter);
		this.frame.addComponentListener(presenter);
		this.splitPane = splitPane;
	}
	
	public void setSplitterPosition()
	{
		splitPane.setDividerLocation(0.5);
	}
}
